package com.qhg.saas_server.service;

import com.github.pagehelper.PageInfo;
import com.qhg.saas_server.empty.ReqQueryProduct;
import com.qhg.saas_server.empty.Result;
import com.qhg.saas_server.pojo.Brand;
import com.qhg.saas_server.pojo.Product;
import com.qhg.saas_server.pojo.Producttype;
import io.swagger.models.auth.In;

import java.util.List;

/**
 *设置模块-商品管理业务层
 */
public interface ProductManagerService {
    //模糊查询
    public PageInfo<Brand> querySomeBrand(String str,Integer currentPage);
    //增、改,0增1改
    public Result changeBrand(Brand brand,Integer code);
    //删除品牌信息
    public void deleteBrand(Integer id);

    //渲染下拉框数据
    public List<String> getLists(String columName,String wholeTable,Integer parentId);


    //商品管理
    //查询
    public PageInfo<Product> queryProduct(ReqQueryProduct reqQueryProduct);
    //增、改
    public Result changeProduct(ReqQueryProduct reqQueryProduct,Integer code);
    //删
    public void deleteProduct(Integer productId);


    //商品类型管理
    //查
    public PageInfo<Producttype> queryTypes(Integer parentId,Integer currentPage);
    //查特定
    public PageInfo<Producttype> queryType(Integer parentId,Integer currentPage);
    //增、改
    public Result changeType(ReqQueryProduct reqQueryProduct,Integer code);
    //删
    public void deleteType(Integer productTypeId);
}
